import { Request, RequestForExportFile } from '@/plugins/supplier-request'
import { SUPERVISION_APPROVAL_PATH, SUPERVISION_APPROVAL_EXPORT_PATH } from './../constans'

// 供应商管理 - 监察核查 - 核查审批跟进表 - 分页查询接口
export const querySupervisionApprovalListService = (data) => {
  return Request(`${SUPERVISION_APPROVAL_PATH}/page`, 'post', data)
}

// 供应商管理 - 监察核查 - 核查审批跟进表 - 导出
export const exportSupervisionApprovalListService = (data) => {
  return RequestForExportFile(`${SUPERVISION_APPROVAL_EXPORT_PATH}/export`, 'get', data)
}

// 供应商管理 - 监察核查 - 核查审批跟进表 - 删除接口
export const deleteSupervisionApprovalService = (id) => {
  return Request(`${SUPERVISION_APPROVAL_PATH}/drop?id=${id}`, 'delete')
}

// 供应商管理 - 监察核查 - 核查审批跟进表 - 正常价格核查 - 查看详情接口
export const getSupervisionRegularPriceItemService = (data) => {
  return Request(`${SUPERVISION_APPROVAL_PATH}/normal-price-item`, 'get', data)
}

// 供应商管理 - 监察核查 - 核查审批跟进表 - 临采价格核查 - 查看详情接口
export const getSupervisionTempPriceItemService = (data) => {
  return Request(`${SUPERVISION_APPROVAL_PATH}/temp-price-item`, 'get', data)
}
